-- GENERATED SPELL FOR [Warsong Captain] --


function spell0_25446(pUnit, Event) --@Bloodlust,n/a--
pUnit:FullCastSpellOnTarget(45584,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25446', 20268, 1)
end

function spell1_25446(pUnit, Event) --@Chain Heal,Heal--
pUnit:FullCastSpellOnTarget(15799,pUnit)
pUnit:RegisterEvent('Sorts_25446', 2500, 1)
end

function spell2_25446(pUnit, Event) --@Chain Lightning,n/a--
pUnit:FullCastSpellOnTarget(12058,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25446', 3000, 1)
end

function spell3_25446(pUnit, Event) --@Lesser Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(44256,pUnit)
pUnit:RegisterEvent('Sorts_25446', 1500, 1)
end

function Sorts_25446(pUnit, Event)
local choix_sorts_25446 = math.random(0, 3)
if choix_sorts_25446 == 0 then
pUnit:RegisterEvent('spell0_25446', 1, 1)
end
if choix_sorts_25446 == 1 then
pUnit:RegisterEvent('spell1_25446', 1, 1)
end
if choix_sorts_25446 == 2 then
pUnit:RegisterEvent('spell2_25446', 1, 1)
end
if choix_sorts_25446 == 3 then
pUnit:RegisterEvent('spell3_25446', 1, 1)
end
end

function mob25446_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25446', math.random(1500, 3000), 1)
end

function mob25446_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25446_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25446_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25446, 1, 'mob25446_Action')
RegisterUnitEvent(25446, 2, 'mob25446_Leave')
RegisterUnitEvent(25446, 3, 'mob25446_Kill')
RegisterUnitEvent(25446, 4, 'mob25446_Die')
